import { request } from "../utils/request";
/**
 * 购物车列表
 */
export function getShopCartList(data) {
  return new Promise(res => {
    res(request('/shopCartController/getShopCartList','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 根据Id修改购物车
 */
export function updateShopCartById(data) {
  return new Promise(res => {
    res(request('/shopCartController/updateShopCartById','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 添加到购物车
 */
export function saveShopCart(data) {
  return new Promise(res => {
    res(request('/shopCartController/saveShopCart','POST',data,{
      'Content-Type': 'application/json'
    }))
  })
}
/**
 * 根据Id删除购物车
 */
export function deleteShopCartById(data) {
  return new Promise(res => {
    res(request('/shopCartController/deleteShopCartById','POST',data))
  })
}

